package com.example.doer.reading.MyReadTool.view;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;

import com.ab.image.AbImageLoader;

/**
 * Created by doer on 2017/7/21.
 */

public class iconView extends View {
    private float left;
    private float top;
    private Bitmap bitmap;
    private Paint paint;
    public iconView(Context context,Bitmap b,float l,float t,Paint p) {
        super(context);
        bitmap=b;
        left=l;
        top=t;
        paint=p;
    }

    public iconView(Context context, AttributeSet attrs) {
        super(context,attrs);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        //开始绘制
        canvas.drawBitmap(bitmap,left,top,paint);
    }

    private AbImageLoader imageLoader;



}
